{foreach $product in $productsPictures}
<div class="col-lg-3 col-md-3 col-sm-5 col-xs-6 mr15 mt15 " style="height: 420px; padding: 0px; position: relative">
    <div class="product" style="height: 100%">
        <div class="layer1 hidden">
            <div class="shortDescription">
              {echo  $product->ProductID->ShortDescription}
            </div>
            <div class="manufacturer">
                producent: <strong>{echo $product->ProductID->ManufacturerID->Name}</strong>
            </div>
        </div>
        <div class="layer2 hidden">
            <div class="product-name" style="height: 44px">
                <a href="/{echo $shop->URL}/sp/{echo $product->ProductID->URL}">{echo  $product->ProductID->Name}</a>   <br/>                
            </div>
            <div class="mainPicture">
                {if $product->PictureID!=null}
                <img src="/img/{echo substr($shop->URL,0,strlen($shop->URL)-1)}/128px/{echo $product->PictureID->Name}">   
                {/if}
                {else}
                brak obrazka
                {/else}
            </div>
            <div class="price">
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th>Cena z VAT</th>
                            <th>Cena netto</th>
                        </tr>
                    </thead>
                    <tr>
                        <td>{echo $product->ProductID->GrossPrice} zł</td>
                        <td>{echo $product->ProductID->NetPrice} zł</td>
                    </tr>
                </table>
            </div> 
            <div class="available">
                {if $product->ProductID->Amount==0}
                <span class="alert-danger alert">brak na stanie</span>
                {/if}
                {else}
                Dostępność: <strong>{echo $product->ProductID->Amount } szt.</strong>
                {/else}
                <br/>
                {if $product->ProductID->AvgMark!=-1}
                {echo new \view\StarSet($product->ProductID->AvgMark,5,15,true)}
                {/if}
                {else}
                brak oceny
                {/else}
            </div><br/>
            <div class="toBasket">     
                <input type="hidden" value="{echo $product->ProductID->ProductID}">
                <img height="35px" src="/img/koszyk.gif">
                Dodaj do koszyka
            </div>
        </div>
    </div>
</div>
{/foreach}


